<?php
 	$list_friend = $this->list_friend;
 ?>
 <?php foreach ($list_friend as $friend){?>
		<div class="friend_box">
			<table width=100%>
			<tr>
				<td height=100px style="background-image:url('/images/round.png')">
				<div width=100px height=100px  align="center">
					<?php 
						$img_path = IMAGE_PATH.'/avatar/'.$friend['avatar'];
    					$size = getimagesize($img_path);
    					if ($size[0]>$size[1]) $att='width';
    					else $att = 'height';
    				?>
    				<img src='/images/avatar/<?php echo $friend['avatar']?>' <?php echo $att?>=100px />
    			</div>
    			</td>
			</tr>
			<tr>
				<td>
				<div align=center style="font-family:arial;font-size:15px;color:orange">
					<a href="/<?php echo $friend['username']?>" style="text-decoration:none;color:orange"><b><?php echo $friend['fullname']?></b></a>
				</div>
				</td>
			</tr>
			</table>
		</div>
	<?php }?>